<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ADMIN CREATOR v0.1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.mainTitle {
	font-family: "Times New Roman", Times, serif;
	font-size: 10px;
	font-weight: bolder;
	color: #CC3300;
	text-decoration: none;
	letter-spacing:2px;
}
.subTitle {
	font-family: "Times New Roman", Times, serif;
	font-size: 10px;
	font-weight: normal;
	color: #336699;
	text-decoration: none;
	letter-spacing:2px;
	background-color: #EFEFEF;
}
.normalText {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 10px;
	font-weight: normal;
	color: #666666;
	text-decoration: none;
	letter-spacing:2px;
}
.internalTitle {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 10px;
	font-weight: bold;
	color: #CC3300;
	text-decoration: none;
	letter-spacing:2px;
}
.codeExamples {
	font-family: "Courier New", Courier, mono;
	font-size: 11px;
	font-weight: normal;
	color: #003399;
	text-decoration: none;
	padding-bottom: 0px;
	border: dashed 1px  #3366CC;
	line-height: 20px;
	background-color: #f0f0f0;
}

.AC {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 13px;
	font-weight: bold;
	color: #336699;
	text-decoration: none;
	letter-spacing:2px;
}
.error{
	padding-left:20px;
	font-family: Georgia, "Times New Roman", Times, serif;
	color:#f00;
	font-weight:bold;
	font-size:12px;
}
label{
	display:block;
	width:80px;
	height:15px;
	border-left:dashed 1px  #3366CC;
	border-right:dashed 1px  #3366CC;
	border-top:dashed 1px  #3366CC;
}
.nota{
	background-color:#ffe;
	color:#f00;
}
-->
</style>
<script src="../../../resource/includes/javascript/jquery/jquery-1.2.3.js"></script>
<script src="../../../resource/includes/javascript/jquery/jquery.colorBlend-1.4.js"></script>
<script src="form.script.js"></script>
</head>

<body bgcolor="#FFFFFF" class="normalText">
	<form class="normalText" method="POST" action="creator2.php" name="aa">
		<table width="740" border="0" cellspacing="0" cellpadding="3">
			<tr valign="top">
				<td height="25" class="mainTitle">ADMIN CREATOR <span style="font-size:10px">alpha</span> form input<div id="helpClick" align="right">HELP</div></td>
			</tr>
			<tr valign="top" >
				<td class="normalText"><div id="help_tr" style="display:none;">
				OK - These are some guide rules to follow.<BR>
				1 - the first element created should be the ID<BR>
				OK - That's the guideline :)<BR>
				<BR>
				Some tips:<BR>
				Just do what sounds normal in terms of PHP & Mysql<BR>
				Dont use spaces in names and stuff like that<BR>
				remember, this is at very, very early stages, and was designed only to make <BR>
				MY LIFE a bit easier.
				<BR><BR>Remember, this is designed to be something a programmer will use<BR>
				not an avg user who wants to put up a site. It does only CMS stuff and should be<BR>
				used only on a development server, never on a live server (since there are lots of nasty little <BR>
				chmods here and there)<BR>
				I'll shortly be placing some sources for some sample classes so that I can be cursed by hundreds of people<BR>
				on the web.<BR>
				<BR>
				Finally, what does this do?!<BR>
				1 - Creates a class (something like a singleton pattern derivative)<BR>
				2 - Creates the CMS files (list, insert/edit, delete)<BR>
				3 - Creates the database table associated.<BR>
				4 - Packages them all up into a neat little package<BR>
				5 - let's you download the package.<BR>
				<BR>
				<BR>
				The next page, guides you through the installation of this package on my system.<BR>
				(a simple upload form where you choose the file you just created and press send)<BR>
				Finally, there is the link to the CMS pages. This link depends on the name of the package  and class you create.<BR>
				<BR>
				Hope you have fun<BR>
				<BR>
				</div>
				</td>
			</tr>
			<tr valign="top">
				<td height="45" class="subTitle">
					<table width="100%">
						<tr>
							<td class="subTitle"><label>Package:</label><input class="codeExamples" type="text" id="pkg" name="pkg" style="width:200px;"></td>
						</tr>
						<tr>
							<td class="subTitle"><label>Class:</label> <input class="codeExamples" type="text" name="clas" id="clas" style="width:200px;"></td>
						</tr>
						<tr>
							<td class="subTitle"><label>Table:</label> <input class="codeExamples" type="text" name="tbl" id="tbl" style="width:200px;"></td>
						</tr>
						<tr>
							<td class="subTitle"><label>Author:</label> <input class="codeExamples" type="text" name="ath" id="ath" style="width:200px;"></td>
						</tr>
						<tr>
							<td class="subTitle"><label>Desc1:</label> <input class="codeExamples" type="text" name="dsc1" id="dsc1" style="width:400px;"></td>
						</tr>
						<tr>
							<td class="subTitle"><label>Desc2:</label> <input class="codeExamples" type="text" name="dsc2" id="dsc2" style="width:400px;"></td>
						</tr>
						<tr>
							<td class="subTitle"><label>Desc3:</label> <input class="codeExamples" type="text" name="dsc3" id="dsc3" style="width:400px;"></td>
						</tr>
						<tr>
							<td class="subTitle">Input line:</td>
						</tr>
						<tr>
							<td class="subTitle">
								<table width="100%" cellpadding="3" cellspacing="1" bgcolor="#999999">
									<tr class="normalText">
										<td bgcolor="#efefef" nowrap>DISPLAY NAME:</td>
										<td bgcolor="#efefef" nowrap>FIELD_NAME:</td>
										<td bgcolor="#efefef" nowrap>TYPE:</td>
										<td bgcolor="#efefef" nowrap>LENGTH:</td>
										<td bgcolor="#efefef" nowrap>DEFAULT_VALUE:</td>
										<td bgcolor="#efefef" nowrap>EXTRA:</td>
										<td bgcolor="#efefef" nowrap>PRIMARY_KEY</td>
									</tr>
									<tr class="codeExamples">
										<td><input class="codeExamples" type="text" id="vars" name="vars" style="width:80px;"></td>
										<td><input class="codeExamples" type="text" id="fname" name="fname" style="width:80px;"></td>
										<td><select class="codeExamples" name="type" id="type">
											<optgroup label="Mysql Types">
								                <option value="INT">Integer Number</option>
								                <option value="VARCHAR">Text Input</option>
								                <option value="TEXT">Text Area</option>
								                <option value="ONOFF">CheckBox (0/1)</option>
								                <option value="ENUM">Radio *1</option>
							            	</optgroup>
								            <optgroup label="Mysql Types">
								                <option value="INT">INT</option>
								                <option value="TINYINT">TINYINT</option>
												<option value="VARCHAR">VARCHAR</option>
								                <option value="TEXT">TEXT</option>
								                <option value="DATE">DATE</option>
								                <option value="SMALLINT">SMALLINT</option>
								                <option value="MEDIUMINT">MEDIUMINT</option>
								                <option value="BIGINT">BIGINT</option>
								                <option value="FLOAT">FLOAT</option>
								                <option value="DOUBLE">DOUBLE</option>
								                <option value="DECIMAL">DECIMAL</option>
								                <option value="DATETIME">DATETIME</option>
								                <option value="TIMESTAMP">TIMESTAMP</option>
								                <option value="TIME">TIME</option>
								                <option value="YEAR">YEAR</option>
								                <option value="CHAR">CHAR</option>
								                <option value="TINYBLOB">TINYBLOB</option>
								                <option value="TINYTEXT">TINYTEXT</option>
								                <option value="BLOB">BLOB</option>
								                <option value="MEDIUMBLOB">MEDIUMBLOB</option>
								                <option value="MEDIUMTEXT">MEDIUMTEXT</option>
								                <option value="LONGBLOB">LONGBLOB</option>
								                <option value="LONGTEXT">LONGTEXT</option>
								                <option value="ENUM">ENUM</option>
								                <option value="SET">SET</option>
							                </optgroup>
										</select></td>
										<td><input class="codeExamples" type="text" id="length" name="length" style="width:40px;"></td>
										<td><input class="codeExamples" type="text" id="defaults" name="defaults" style="width:40px;"></td>
										<td><select class="codeExamples" name="extra" id="extra">
											<option value=""></option>
											<option value="AUTO_INCREMENT">AUTO_INCREMENT</option>
										</select></td>
										<td><input class="codeExamples" type="checkbox" name="pk" id="pk"></td>
									</tr>
								</table><br>
								<div id="enum" style="display:none" class="nota">*1 - For Radio, place the value in defaults fields like this: a,b,1,3,f</div>
							</td>
						</tr>
						<tr>
							<td class="subTitle" align="right">
							<input type="button" value="RESET" onclick="clearAll()">
							<input type="button" value="ADD & CLEAR" onclick="adC()">
							<input type="button" value="ADD & KEEP" onclick="addF()">
							</td>
						</tr>
						<tr>
							<td class="subTitle">Code Pane:</td>
						</tr>
						<tr>
							<td class="subTitle"><textarea name="pane" class="codeExamples" cols=100 rows=10></textarea></td>
						</tr>
						<tr>
							<td class="subTitle" align="right"><input type="button" value="submit" onclick="fisnish()"></td>
						</tr>

					</table>
				</td>
			</tr>
		</table>
	</form>
	<script>
	//	initJQuery();
	</script>
</body>
